<?php
$ArSectors = Dracosys::getSessionValue(SESSION_INTERFACE, 'Report');
foreach ($ArSectors as $Id => $Sector):
    $EvaluationReport = $Sector->getReport('AVALIACAO');
    $class = ($Id % 2 == 0) ? 'color1' : 'color2';
?>
    <tr class="<?= $class ?>">
        <td><?= $Sector->getStNome() ?></td>
        <td><?= $EvaluationReport['OTIMO'] ?></td>
        <td><?= $EvaluationReport['MUITO BOM'] ?></td>
        <td><?= $EvaluationReport['REGULAR'] ?></td>
        <td><?= $EvaluationReport['PESSIMO'] ?></td>
        <td><?= $EvaluationReport['TOTAL'] ?></td>
        <td>
            <a href="<?=DRA_URL?>avaliacao/visualizar-avaliacao/setor/<?=$Sector->getIDSetor()?>">
                <img src="<?=DRA_VIEW_URL?>images/descricao.png" alt="Visualizar" title="Visualizar" />
            </a>
        </td>
    </tr>
<?php endforeach; ?>